<template>
	<view class="li" @click="skipUp">
		<view class="imgs">
			<text class="t-icon
" :class="ifont.icon"></text>
		</view>
		<text>{{ifont.title}}</text>
	</view>
</template>

<script>
	export default {
		props: ['ifont'],
		setup(props,context) {
          
		   const skipUp=()=>{
			   context.emit('skip',props.ifont.path)
		   }
		   return{
			   skipUp
		   }
		}
	}
</script>

<style lang="scss">
	.li {
		width: 140rpx;
		height: 140rpx;
		padding: 20rpx 0;
		box-sizing: border-box;
		border-radius: 20rpx;
		border: 1px solid #eee;
		display: flex;
		flex-flow: column;
		align-items: center;
		font-size: 20rpx;
		justify-content: space-between;

		.t-icon {
			font-size: 48rpx;
		}

		.imgs {
			width: 60rpx;
			height: 60rpx;
			border-radius: 30rpx;
		 text-align: center;
			line-height: 60rpx;
			color: #0066ff;
		}
		
	}
</style>
